package models

import "github.com/astaxie/beego/orm"

type Users struct {
	Id int
	Account string `orm:"size(100)"`
	Name string `orm:"size(100)"`
	Password string `orm:"size(100)"`
	CreatedTime int `orm:"size(10)"`
}


var o orm.Ormer
func init(){
	orm.RegisterModel(new(Users))
	orm.RunSyncdb("default",false,true)
	o = orm.NewOrm()
}
func (u *Users) ReadUser() error {
	return o.Read(u)
}